import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * This is the world of the credits shows the credits of the simulation.
 * 
 * @author Christian Pérez Zavalija
 * @version 25-Jun-2013
 */
public class Help extends World
{

    /**
     * Constructor for objects of class Help. Create the dimension of the world and calls the method prepare()
     */
    public Help()
    {   
        super(800, 800, 1);
        
        prepare();
    }
    
    /**
     * Place back button Worldwide Help.
     */
    private void prepare()
    {
        BtnBack btnback = new BtnBack();
        addObject(btnback, 20, 38);
    }
    
    /**
     *Condition for that when pressed return to canvas or through key 'b'.
     */
    public void act()
    {
        if(Greenfoot.mousePressed(BtnBack.class)||Greenfoot.isKeyDown("b"))
        {
            Greenfoot.setWorld(new Canvas());
        }
    }
}
